# from python_apollo_client import ApolloClient
# import json
#
#
# class ApolloUtils(ApolloClient):
#     def __init__(self, app_id='xxx', config_server_url='http://xx.fat.xx.com:18080'):
#         super().__init__(app_id=app_id, config_server_url=config_server_url, username='x', password='x')
#
#     def get_apollo(self, key):
#         config_value = self.get_value(key, None)
#         self.stop()
#         try:
#             config_value_format = json.loads(config_value)
#         except:
#             return config_value
#         else:
#             return config_value_format
#
#
# if __name__ == '__main__':
#     new_apollo = ApolloUtils().get_apollo('log_push_flag')
#     print(bool(new_apollo))
